// 自动生成模板UserGoods
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type UserGoods struct {
      global.GVA_MODEL
      IsQa  *bool `json:"isQa" form:"isQa" gorm:"column:is_qa;comment:是否质保"`
      Brand  string `json:"brand" form:"brand" gorm:"column:brand;comment:品牌或厂家;type:varchar(255);"`
      CProduct  int `json:"cProduct" form:"cProduct" gorm:"column:c_product;comment:品类名;type:int;size:10;"`
      CWork  int `json:"cWork" form:"cWork" gorm:"column:c_work;comment:行业;type:int;size:10;"`
      Content  string `json:"content" form:"content" gorm:"column:content;comment:内容;type:blob;"`
      Norms  string `json:"norms" form:"norms" gorm:"column:norms;comment:规格或型号;type:varchar(255);"`
      STitle  string `json:"sTitle" form:"sTitle" gorm:"column:s_title;comment:副标题;type:varchar(255);"`
      Stock  string `json:"stock" form:"stock" gorm:"column:stock;comment:仓库信息;type:varchar(255);"`
      Title  string `json:"title" form:"title" gorm:"column:title;comment:标题;type:varchar(255);"`
      UserId  int `json:"userId" form:"userId" gorm:"column:user_id;comment:会员ID;type:int;size:10;"`
      Users Users `json:"users" gorm:"foreignKey:ID;references:UserId"`
      UserGoodsPic    []UserGoodsPic `json:"pic"  gorm:"foreignKey:GoodsId;references:ID"`
      Top  *bool `json:"top" form:"top" gorm:"column:top;comment:是否置顶"`
      CWorkInfo CTypes  `json:"c_work_info"  gorm:"foreignKey:ID;references:CWork"`
      CProductInfo CTypes  `json:"c_product_info" gorm:"foreignKey:ID;references:CProduct"`
      Quality string `json:"quality" form:"quality" gorm:"column:quality;comment:质量等级;type:varchar(255);"`
      Status  int `json:"status"  form:"status" gorm:"column:status;comment:状态;type:int;size:10;"`
}


func (UserGoods) TableName() string {
  return "user_goods"
}

